<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素显示模式转换</title>
    <style>

        a{
          width: 150px;
            height: 50px;
            background-color: red;
            /*把行内元素a转换为块级元素*/
            display: block;
        }

        div{
            /*width: 300px;转换后无效*/
            /*height: 150px;转换后无效*/
            background-color: blue;
            /*把div块级元素转换为行内元素*/
            display: inline;
        }

        span{
            width: 300px;
            height: 50px;
            background-color: green;
            /*行内元素转换为行内快元素*/
            display: inline-block;
        }

    </style>

</head>
<body>
<a href="#">老阿姨</a>
<div>我是块级元素</div>
<div>我是块级元素</div>
<span>行内元素转换为行内快元素</span>
<span>行内元素转换为行内快元素</span>
</body>
</html>